class RefeToNewsFromUsers < ActiveRecord::Migration[8.0]
  def change
    # news关联users
    add_reference :news, :user, foreign_key: true
  end
end
